package com.prj.ufdm.demo.tutorial.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
  * 定义注解
 * @author Administrator
 *
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface DefAnnotation {

	// 注解的属性(含括号，default 为默认值)
	public String name();
	
	public SexEnum sex()  default SexEnum.MALE;
	
	public String [] favorite() default {"裁缝","剪纸"};
	
}
